//
//  Order.m
//  GoodWayClient
//
//  Created by HuiDong on 15/12/22.
//  Copyright © 2015年 HuiDong. All rights reserved.
//

#import "Order.h"

@implementation Order
+ (instancetype)orderWithDic:(NSDictionary *)dic
{
    return [[self alloc] initWithDic:dic];
}
- (instancetype)initWithDic:(NSDictionary *)dic
{
    if (self = [super init]) {
        self.OrderId = (int)dic[@"Id"];
        self.OrderNum = dic[@"OrderNum"];
        self.ProductID = (int)dic[@"ProductID"];
        self.ProductName = dic[@"ProductName"];
        self.AZUID = (int)dic[@"AZUID"];
        self.AZName = dic[@"AZName"];
        self.BuyID = (int)dic[@"BuyID"];
        self.OKPrice = (int)dic[@"OKPrice"];
        self.Status = (int)dic[@"Status"];
        self.CreateTime = (NSDate *)dic[@"CreateTime"];
    }
    return self;
}
@end
